package cn.bincker.mybatis.encrypt.data.migration.utils;

public class DateUtils {
    public static String toHumanTime(int seconds){
        var hour = seconds / 3600;
        seconds = seconds % 3600;
        var minute = seconds / 60;
        seconds = seconds % 60;
        var result = "";
        if (hour != 0){
            result += hour + ":";
        }
        if (minute != 0){
            result += minute + ":";
        }
        result += seconds;
        return result;
    }
}
